﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using Jiubang.Communication.Server.SessionControl;

namespace Jiubang.Communication.Server.RequestRouter {
    internal interface IBroadcastable {
        /// <summary>
        ///  向多个客户端广播缓冲区的内容
        /// </summary>
        /// <param name="socket">当前客户端的连接。当发送范围包括Current时该值不能为Null</param>
        /// <param name="arraySegment">待发送的缓冲区</param>
        /// <param name="option">发送范围</param>
        bool Broadcast(Socket socket, ArraySegment<byte> arraySegment, BroadcastOption option);
    }
}
